<?php
/**
 * +--------------------------------------------------------+
 * @Created by Phpstorm.
 * @Category StockPeaRepository.php
 * @Depiction
 * @Author hwy <429208948@qq.com>
 * @Date 2022/7/1  17:51
 * +--------------------------------------------------------+
 */

namespace App\Repositories;

use App\Models\Stock;
use App\Models\StockPea;

class StockPeaRepository extends BaseRepository
{
    protected $stockPea;

    public function __construct(StockPea $stockPea)
    {
        $this->stockPea = $stockPea;
    }

    public function addData($data)
    {
        return $add = $this->stockPea->query()->insert($data);
    }


}
